.tr-range {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  .label-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.5;
    text-align: right;
    justify-content: flex-end;
  }

  .tr-label-prefix-wraper {
    width: auto;
  }
  .tr-label-prefix-wraper-left {
    width: auto;
  }
  .tr-label-prefix {
    justify-content: flex-end;
    text-wrap: nowrap;
    gap: 4px;
    min-width: 88px;
    margin-right: 8px;
  }

  &.z-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .tr-label-prefix {
      justify-content: flex-start;
    }

    .tr-label-prefix-wraper {
      padding-bottom: 0;
    }

    .label-title {
      line-height: 1.5;
    }
  }

  &.z-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .tr-label-prefix {
      justify-content: flex-start;
    }

    .tr-label-prefix-wraper {
      padding-bottom: 0;
    }

    .tr-range-value {
      .tr-range-cnt {
        min-height: 48px;
      }
    }

    .u-error-message {
      position: relative;
      padding-top: 5px;
      padding-bottom: 0;
      font-size: 12px;
      line-height: 18px;
      min-height: 0;
      transform: none;
    }

    // 系统样式，表单组件标准样式
    &.tr-range-form {
      .tr-range-cnt {
        min-height: 47px;
        border-bottom: 1px solid #f1f1f1;
      }
    }
  }

  .tr-range-value {
    position: relative;
    width: 100%;
    box-sizing: border-box;

    .tr-range-cnt {
      display: flex;
      align-items: center;
      min-height: 32px;
      padding: 0 20px;

      .tr-range-cpt {
        // 这块的样式都是为了让滑块和标题对齐
        &.z-markerLabels {
          transform: translateY(12px);
        }

        &.z-markersAndMarkerLabels {
          //transform: translateY(-12px);
        }

        &.z-markerLabelsAndSwitch {
          // transform: translateY(-12px);
        }

        &.z-markersAndMarkerLabelsAndSwitch {
          transform: translateY(-13px);
        }
      }
    }

    // 错误提示样式和input组件保持一致
    .u-error-message {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      transform: translateY(100%);
      padding-top: 8px;
      padding-bottom: 6px;
      font-size: 11px;
      min-height: 20px;
      line-height: 1;
      color: #f00;
      word-break: break-word;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
  }

  .q-slider__markers--h {
    background-image: repeating-linear-gradient(
      to right,
      currentColor,
      currentColor 1px,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0)
    );

    &:after {
      width: 1px;
    }
  }

  .q-range {
    &:focus {
      outline: none;
      box-shadow: 0 0 10px 2px rgba(#000, 0.09);
    }
  }
}

.text-teld_primary {
  color: var(--t-color) !important;
}

.bg-teld_primary {
  background: var(--t-color) !important;
}

.text-track_color {
  color: rgba(#f0f2f5, 0.5) !important;
}

.bg-track_color {
  background: rgba(#f0f2f5, 0.5) !important;
}

.text-inner_track_color {
  color: #f0f2f5 !important;
}

.bg-inner_track_color {
  background: #f0f2f5 !important;
}
